package com.jxdinfo.hussar.example.common.schedulingtask.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jxdinfo.hussar.example.common.schedulingtask.model.CboDepartment;
import com.jxdinfo.hussar.example.common.schedulingtask.model.MdWorkshop;
import com.jxdinfo.hussar.example.common.schedulingtask.vo.MdWorkshopVO;
import com.jxdinfo.hussar.support.datasource.annotations.HussarDs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 车间表 Mapper 接口
 * </p>
 *
 * @author 乔镔
 * @since 2024-04-08
 */
@Mapper
@Repository("com.jxdinfo.hussar.example.common.schedulingtask.dao.MdWorkshopMapper")
public interface MdWorkshopMapper extends BaseMapper<MdWorkshop> {

    LocalDateTime selectMaxScheduleDate();

    @HussarDs("U9C")
    List<MdWorkshopVO> selectMoreSchedule(String scheduleDateString);

    @HussarDs("U9C")
    List<MdWorkshopVO> selectUpdateMoreSchedule(String scheduleDateString);

    @HussarDs("U9C")
    List<MdWorkshopVO> selectAllClient();
}
